home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 23
/
AACD 23.iso
/
AACD
/
Programming
/
tek
/
array
/
arraygetlen.c
next >
Wrap
C/C++ Source or Header
|
2001-05-12
|
345b
|
26 lines
#include "tek/mem.h"
#include "tek/array.h"
/*
** TEKlib
** (C) 2001 TEK neoscientists
** all rights reserved.
**
** len = TArrayGetLen(arraydata)
** TUINT TAPTR
**
** get array length.
**
*/
TUINT TArrayGetLen(TAPTR arraydata)
{
if (arraydata)
{
TARRAY *arr = ((TARRAY *) arraydata) - 1;
return arr->len;
}
return 0;
}